package com.yang.entity;


public class Productcar {

    private Integer id;
    private Integer pid;
    private String name;

    private String url;

    private Double price;

    private Integer num;

    private String detail;

    private Integer categoryid;

    private Integer uid;

    public Productcar() {
    }
    public Productcar(Product product,Integer uid,Integer count) {
        this.categoryid=product.getCategoryid();
        this.detail=product.getDetail();
        this.pid=product.getId();
        this.name=product.getName();
        this.price= (Double) product.getPrice();
        this.url=product.getUrl();
        this.uid=uid;
        this.num=count;
    }

    public Productcar(Integer id, Integer pid, String name, String url, Object price, Integer num, String detail, Integer categoryid, Integer uid) {
        this.id = id;
        this.pid = pid;
        this.name = name;
        this.url = url;
        this.price = (Double) price;
        this.num = num;
        this.detail = detail;
        this.categoryid = categoryid;
        this.uid = uid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public Integer getCategoryid() {
        return categoryid;
    }

    public void setCategoryid(Integer categoryid) {
        this.categoryid = categoryid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    @Override
    public String toString() {
        return "Productcar{" +
                "id=" + id +
                ", pid=" + pid +
                ", name='" + name + '\'' +
                ", url='" + url + '\'' +
                ", price=" + price +
                ", num=" + num +
                ", detail='" + detail + '\'' +
                ", categoryid=" + categoryid +
                ", uid=" + uid +
                '}';
    }
}


